]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Workspace: fix stacking of window clones
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 20 Feb 2013 18:33:29 +0000 (19:33 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 20 Feb 2013 19:56:58 +0000 (20:56 +0100)
We must set the stack above property of window clones, or they will
not stack themselves properly when a drag is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=694292

js/ui/workspace.js

index 049745f1888a18f29bf70195ad22bf2497ff83ce..bf951d08f52da87c562074e2471df55043d35b60 100644 (file)
@@ -1349,6 +1349,11 @@ const Workspace = new Lang.Class({
 
         overlay.connect('show-close-button', Lang.bind(this, this._onShowOverlayClose));
 
+        if (this._windows.length == 0)
+            clone.setStackAbove(null);
+        else
+            clone.setStackAbove(this._windows[this._windows.length - 1].actor);
+
         this._windows.push(clone);
         this._windowOverlays.push(overlay);